package com.itkaien.service;

import com.github.pagehelper.PageInfo;
import com.itkaien.mapper.InventoryMapper;
import com.itkaien.pojo.Inventory;
import org.springframework.stereotype.Service;

@Service
public interface InventoryService {
    /**
     * 添加库存这里是直接添加 库存判断没有商品时
     * @param inventory
     */
    void addinventory(Inventory inventory);

    /**
     * 修改库存信息
     * @param inventory
     */
    void updateinventory(Inventory inventory);

    /**
     * 查询库存确定门店信息和商品信息才可以修改
     * @param inventory
     * @return
     */
    Inventory findinventorybygoodsidandstoryid(Inventory inventory);
    /**
     * 根据商品id和门店id查询库存 可以根据名字模糊查询
     * @param goodsId
     * @param storeId
     * @param goodsName
     * @return
     */
    Inventory findinventory(Integer goodsId, Integer storeId,String goodsName);
}
